package com.znsd.dining.room.service;

import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

/**
 * @Integer deptClientServer
 * @Description: TODO
 * @Author Lenovo
 * @Date 2020/1/2
 * @Version V1.0
 **/
@Component
public class DeptServerFallBackFactory implements FallbackFactory<TestService> {
    @Override
    public TestService create(Throwable cause) {
        return new TestService() {
            @Override
            public String depst() {
                return "出错了老弟11";
            }
        };
    }
}
